package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 证件 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-15 10:04:27 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "证件")
@Table ( name ="Document")
public class Document  implements Serializable {

	private static final long serialVersionUID =  4763062858695745870L;

	/**
	 * 证件分发ID
	 */
	@ApiModelProperty(value = "证件分发ID")
   	@Column(name = "Distribute_Id" )
	private Long distributeId;
	
	/**
	 * 证件ID
	 */
	@ApiModelProperty(value = "证件ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Document_Id" )
	private Long documentId;

	/**
	 * 证件记录ID
	 */
	@ApiModelProperty(value = "证件记录ID")
   	@Column(name = "Document_Record_Id" )
	private Long documentRecordId;

	/**
	 * 证件类型ID
	 */
	@ApiModelProperty(value = "证件类型ID")
   	@Column(name = "Document_Type_Id" )
	private Long documentTypeId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
   	@Column(name = "Avatar" )
	private String avatar;

	/**
	 * 类型名称
	 */
	@ApiModelProperty(value = "类型名称")
   	@Column(name = "TypeName" )
	private String typeName;

	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号")
   	@Column(name = "phone" )
	private String phone;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
   	@Column(name = "Remark" )
	private String remark;

	/**
	 * 票码
	 */
	@ApiModelProperty(value = "票码")
   	@Column(name = "Code" )
	private String code;

	/**
	 * 编号
	 */
	@ApiModelProperty(value = "编号")
   	@Column(name = "ID_Number" )
	private String idNumber;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getDistributeId() {
		return this.distributeId;
	}

	public void setDistributeId(Long distributeId) {
		this.distributeId = distributeId;
	}

	public Long getDocumentId() {
		return this.documentId;
	}

	public void setDocumentId(Long documentId) {
		this.documentId = documentId;
	}

	public Long getDocumentRecordId() {
		return this.documentRecordId;
	}

	public void setDocumentRecordId(Long documentRecordId) {
		this.documentRecordId = documentRecordId;
	}

	public Long getDocumentTypeId() {
		return this.documentTypeId;
	}

	public void setDocumentTypeId(Long documentTypeId) {
		this.documentTypeId = documentTypeId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"documentId='" + documentId + '\'' +
					"documentRecordId='" + documentRecordId + '\'' +
					"documentTypeId='" + documentTypeId + '\'' +
					"distributeId='" + distributeId + '\'' +
					"phone='" + phone + '\'' +
					"projectId='" + projectId + '\'' +
					"avatar='" + avatar + '\'' +
					"typeName='" + typeName + '\'' +
					"name='" + name + '\'' +
					"remark='" + remark + '\'' +
					"code='" + code + '\'' +
					"idNumber='" + idNumber + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
